﻿
@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.ProcessTypes

    @model CreateOrEditProcessTypeModalViewModel

    @* 初始化头部 *@
    @Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditProcessType") + ": " + Model.ProcessType.ProcessName) : L("CreateProcessType")))


    <!--html代码区域-->
    <div class="modal-body">
        <form name="processTypeInformationsForm" role="form" novalidate class="form-validation">
            <input type="hidden" name="Id" value="@Model.ProcessType.Id" />
            <div>


                <div hidden="hidden">
                    @if (Model.IsEditMode)
            {
                        <input type="hidden" name="Id" value="@Model.ProcessType.Id" />
                    }
                </div>


                <div class="form-group  ">
                    <label>@L("ProcessName")   <span class="required"> * </span>	 	</label>
                    <input class="maxlength-handler form-control @(Model.ProcessType.ProcessName.IsNullOrEmpty() ? "" : " edited")" type="text" name="ProcessName" value="@Model.ProcessType.ProcessName" required maxlength="20" />
                    
                </div>



                <div class="form-group  ">
                    <label>@L("ProcessCode")   <span class="required"> * </span>	 	</label>
                    <input class="maxlength-handler form-control @(Model.ProcessType.ProcessCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="ProcessCode" value="@Model.ProcessType.ProcessCode" required maxlength="20" />
                    
                </div>


            </div>
        </form>
    </div>
    @Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")

